home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_2 / sellem12.zip / SELL'EM.DOC < prev    next >
Text File  |  1992-07-08  |  16KB  |  382 lines

  1.         **************************************************************
  2.         *                                                            *
  3.         *            SELL'EM.EXE v1.2  Copyright (c) 1992            *
  4.         *                                                            *
  5.         *                Sagerquist Micro Engineering                *
  6.         *                                                            *
  7.         *                   1414 W. Kerrick Street                   *
  8.         *                    Lancaster, Ca. 93534                    *
  9.         *                    Data  (805) 723-6908                    *
  10.         *                                                            *
  11.         **************************************************************
  12.  
  13.  
  14. DESCRIPTION
  15. -----------
  16.     SELL'EM.EXE is a BBS Advertisement Trap Door program.  There may
  17.     be up to 20 defined database files where the ads can be placed. 
  18.     Within each database, up to 50 entries (records) may be placed by
  19.     the BBS callers or the SysOp for all callers to view.
  20.  
  21. SYNTAX
  22. ------
  23.     SELL'EM [-(bbstype)]
  24.                 or
  25.     SELL'EM -COMPRESS
  26.  
  27. EXAMPLES
  28. --------
  29.     SELL'EM -MH1
  30.     SELL'EM -COMPRESS    (See section on deleting records)
  31.  
  32.     Supported BBS's:
  33.         Mega/Maxi/MiniHost:   -MH1          (DOOR.SYS)
  34.         Mega/Maxi/MiniHost:   -MH2          (DORINFO1.DEF)
  35.         PcBoard:              -PCBOARD      (DOOR.SYS)
  36.         QuickBBS:             -QBBS         (DORINFO1.DEF)
  37.         RBBS:                 -RBBS         (DORINFO1.DEF)
  38.         Remote Access:        -RA1          (DOOR.SYS)
  39.         Remote Access:        -RA2          (DORINFO1.DEF)
  40.         Teleguard:            -TELEGUARD    (CHAIN.TXT)
  41.         TGP:                  -TGP          (CHAIN.TXT)
  42.         Wildcat (v3.0+):      -WILDCAT      (DOOR.SYS)
  43.         Wildcat:              -CALLINFO     (CALLINFO.BBS)
  44.         World War IV:         -WWIV         (CHAIN.TXT)
  45.  
  46.     Note: The BBS will create its caller definition file, such as
  47.           DOOR.SYS, DORINFO1.DEF, etc.  The data format within
  48.           these files may be different for each BBS even though
  49.           the same filename is used for another:  DOOR.SYS for
  50.           MEGAHOST is different than DOOR.SYS for Wildcat.  Be sure
  51.           to use the proper switch.
  52.  
  53. 14 FILES
  54. --------
  55.     SELL'EM  EXE        Executable program.
  56.     SELL'EM  DBM        Data Base Menu file.
  57.     SELL'EM  DOC        Document file. (This file).
  58.     SELL'EM  REG        Registration text file.
  59.     SOFTWARE DAT        Sample database file with 3 ads.
  60.     NAT'LBBS DAT        Sample database file with 1 ad.
  61.     TRAPDOOR BAT        Sample batch file for a BBS Trap Door.
  62.     CALLINFO BBS        Sample BBS file.
  63.     CHAIN    TXT        Sample BBS file.
  64.     DOOR     SYS        Sample BBS file.
  65.     WC_DOOR  SYS        Sample BBS file (WILDCAT 3.0's version.
  66.                 Rename to DOOR.SYS).
  67.     DORINFO1 DEF        Sample BBS file.
  68.     RBBSINFO DEF        Sample BBS file (RBBS's format.
  69.                 Rename to DORINFO1.DEF).
  70.     TEST     BAT        Batch file for initial testing.
  71.  
  72. SETUP
  73. -----
  74.     Create a separate subdirectory for SELL'EM and all of its associated
  75.     files, and place them here.
  76.  
  77.     With an ASCII text editor, edit SELL'EM.DBM.  This is where your
  78.     database names and their file names are defined.  A menu list may
  79.     appear like this:
  80.  
  81. Shareware: I B M Software;SOFTWARE.DAT
  82. Computers and Equipment;COMP.DAT
  83. BBS Listing - Local;LOCALBBS.DAT
  84. BBS Listing - National;NAT'LBBS.DAT
  85. Automotive: Cars for Sale;SELLCAR.DAT
  86. Real Estate;REALEST.DAT
  87. Home Services;SERVICES.DAT
  88. Garage Sales;GARAGE.DAT
  89.  
  90.     The menu item, as it will be displayed to the BBS caller has a
  91.     maximum length of 25 characters.  If you accidentally exceed 25
  92.     characters, it will be cut short.
  93.  
  94.     The semicolon   ;   separates the menu name from the filename that
  95.     will hold its data.
  96.  
  97.     This filename may contain a path.  Without a path, SELL'EM will look
  98.     for the file in the default directory (recommended method).  DOS 
  99.     standards must be met when deciding on a filename ie: maximum 8 
  100.     character file name, maximum 3 character extension, etc.  See your 
  101.     DOS manual for further details.  The filename entry (including the 
  102.     path, if necessary) must not exceed 54 characters.
  103.  
  104. Automotive: Engine Repair;CARFIX.DAT
  105.                                                                            
  106. └─ 25 characters max ───┘│└───────────────── Up to 54 characters ──────────────┘
  107.                          │     Place the file name (and path if desired) 
  108. Mandatory separator ─────┘     immediately after the semi-colon (NO SPACES!!).
  109.  
  110.     I believe SELL'EM is best run from a batch file.  This allows
  111.     for the steps necessary for SELL'EM to run properly:
  112.     1 - Relocating the appropriate BBS file (DOOR.SYS, etc.) to the
  113.         subdirectory where SELL'EM is placed.
  114.     2 - Changing to that subdirectory.
  115.     3 - Make a BBS log file entry, if desired.
  116.     4 - Execute SELL'EM.
  117.     5 - Changing back to a subdirectory that's safe for BBS operations.
  118.     Unless your BBS can perform all these functions for you, I recommend
  119.     the batch file method.
  120.  
  121.     Edit the batch file TRAPDOOR.BAT (included in this ZIP package).  
  122.     Rename this batch file to a name that your BBS will recognize, place
  123.     it where the BBS will find it.
  124.  
  125.     Basically, thats it!  It will run for you and your callers.
  126.  
  127. SAMPLE BATCH FILE
  128. -----------------
  129. @ECHO OFF
  130. CLS
  131. C:
  132. CD C:\BBS\SELL'EM
  133. COPY C:\BBS\DATA\DOOR.SYS C:\BBS\SELL'EM > NUL
  134. ECHO ******* Entering SELL'EM *******>> C:\BBS\DATA\BBS.LOG
  135. SELL'EM -MH1
  136. CD C:\BBS\UPLOADS
  137.  
  138. ON-LINE OPERATION
  139. -----------------
  140.     SELL'EM will operate in monochrome mode, or ANSI color mode.  Either
  141.     way, the operation is identical.  Only the appearance is different.
  142.  
  143.     At the DATABASE MENU, (the opening screen), choose a database to
  144.     view or manipulate.  The <ENTER> key, or the <ESC> key will exit
  145.     back to the BBS.  Type the number of the database displayed, and
  146.     you will begin viewing the records within that database.
  147.  
  148.     Once into a database, the menu allows for many choices:
  149.  
  150.     [A]dd - - - - - Allows for adding a new advertisement (record).
  151.             The "Business Card" gets filled first, then the
  152.             description.  The "Description" allows for 8 lines
  153.             of 33 characters.  The time that the ad was placed
  154.             is displayed with each record.
  155.  
  156.         NOTE:   Please notice that the name on the "Business Card" 
  157.             need not be the name of the person entering the ad.
  158.             This allows a caller to place an ad for a friend or
  159.             neighbor.  The actual record in the database file
  160.             will contain the name of the person who placed the
  161.             ad along with of the sysop's name.  If the ad is 
  162.             profane or offensive, view the database file with an
  163.             ASCII text editor.  You'll find the culprit's name!
  164.  
  165.     [D]elete  - - - Allows only the "Originator" (the person who placed
  166.             the ad) or the sysop to delete the record.  Actually,
  167.             the record is only MARKED as deleted.  The sysop can
  168.             view all records marked as DELETED.  The "Originator"
  169.             can view only those DELETED records that he/she placed.
  170.             Only the sysop can physically REMOVE these records from
  171.             the database file, explained later.  Marking them as 
  172.             "DELETED" inhibits other callers from viewing the
  173.             record.  
  174.  
  175.         NOTE:   The name of the "Originator" and the sysop are placed
  176.             into the database record.  This way, they can be
  177.             recognized for the Delete, Undelete and Edit functions.
  178.             The sysop is the person to whom SELL'EM is registered.
  179.  
  180.     [U]ndelete  - - Records marked as "DELETED", may be "UNDELETED" by
  181.             the "Originator" or the sysop only.  This restores
  182.             them to the public view.
  183.  
  184.     [E]dit  - - - - Allows the "Originator" or the sysop the ability to
  185.             alter the data in the record.  Entering 'E' at the
  186.             prompt places you into the "EDIT SELECT" mode.  The 
  187.             "EDIT SELECT" feature begins at the first item (field)
  188.             of the ad, the business name.  In the ANSI color mode,
  189.             the EDIT MENU is displayed, then the selected field to 
  190.             edit will flash.  In monochrome mode, the field is 
  191.             displayed below the EDIT MENU.  You must then choose
  192.             from the EDIT MENU:
  193.     ...[E]dit - - - Allows for editing that field.  The entire string of
  194.             characters must be typed.
  195.     ...[N]ext - - - Move to (select) the next field for possible editing.
  196.     ...[P]revious - Move to (select) the previous field for possible
  197.             editing.
  198.     ...[S]ave - - - Saves the edited record.
  199.     ...[Q]uit Edit- Exits the edit function.  If there were any changes
  200.             to the record, you are prompted to save.  You may
  201.             save the new data, or restore the old data.
  202.  
  203.     [N]ext  - - - - Allows for viewing the next record.  All records 
  204.             loaded from the database file are numbered.  Just
  205.             below the address on the business card, there's a
  206.             number like this: "03 of 15" meaning record 3 of
  207.             15 available records.
  208.  
  209.     [P]revious  - - Allows for viewing the previous record.
  210.  
  211.     [S]earch  - - - Allows for searching for a particular string of
  212.             characters from the record.  This function opens a
  213.             small menu while its searching the active records:
  214.     ...[N]ext - - - If a record is found, the search pauses, and displays
  215.             this record.  Use this function to continue searching
  216.             the remainder of the records (view the next one).
  217.     ...[S]earch - - This allows for typing in a new string of characters
  218.         String      to search for.  The search begins at the first record.
  219.             If the search does not find the string requested, the
  220.             function just exits, returning control where you
  221.             started.
  222.     ...[Q]uit - - - Stops the search at the current record.
  223.  
  224.     [C]hange Database
  225.             Returns to the Database Menu, to allow viewing
  226.             another database of advertisements.  <ENTER> or <ESC>
  227.             performs the same task.
  228.  
  229.     [Q]uit  - - - - Exits program back to the BBS, skipping the Database
  230.             Menu.
  231.  
  232. REMOVING RECORDS
  233. ----------------
  234.     When the command line switch "-COMPRESS" is invoked, all the database
  235.     files are searched.  The records marked "DELETED" are physically
  236.     removed from the files.  The command looks like this:
  237.  
  238.     SELL'EM -COMPRESS
  239.  
  240.     Place this command into your BBS event batch file, and your databases
  241.     of advertisements will maintain themselves.  As a sysop, you might
  242.     need to prune it occasionally.  "Originators" of the ads might forget
  243.     about them.
  244.  
  245. TECHNICAL
  246. ---------
  247.     SELL'EM.EXE performs its own COM port I/O, no redirection programs
  248.     are required.  COM1 through COM4 are supported.
  249.  
  250.     Comm port functions include interrupt driven, buffered input and
  251.     output.  If installed, the 16550 UART's 16 character FIFO buffer
  252.     is supported for faster transmission speed.  Works well with earlier
  253.     UARTs, also.
  254.  
  255.     Carrier Detect is monitored.  If a caller disconnects (hangs up) the
  256.     phone line, SELL'EM will automatically exit, and return to the BBS.
  257.     The BBS is expected to then perform its own reset.
  258.  
  259.     User input time is monitored.  A caller has two minutes (120 seconds)
  260.     to read the advertisement, or make a menu choice.  Basically, the
  261.     user must strike a key at least once every 120 seconds or SELL'EM 
  262.     will exit to the BBS.
  263.  
  264.     Incomming characters are checked for error conditions.  If a FRAMING
  265.     error, PARITY error, or DATA OVERRUN error occurs, SELL'EM.EXE will
  266.     recognize the error and exit to the BBS.
  267.  
  268.     On exit of SELL'EM, ERRORLEVELs are returned.  Your batch file can
  269.     check the ERRORLEVEL and determine what has happened.  The following
  270.     is a list of SELL'EM's ERRORLEVELs and their meaning:
  271.  
  272.     ERRORLEVEL   0        Normal exit from normal operation.
  273.     ERRORLEVEL   5        Normal exit from user BREAK.
  274.     ERRORLEVEL  10        COMPRESS function performed successfully.
  275.     ERRORLEVEL  15        Error exit: Keyboard time out.  No user input 
  276.                 for 120 seconds.
  277.     ERRORLEVEL  20        Error exit: Carrier Lost.  Telephone line was
  278.                 disconnected.
  279.     ERRORLEVEL  25        Error exit: Incomming character framing error.
  280.     ERRORLEVEL  26        Error exit: Incomming character parity Error.
  281.     ERRORLEVEL  27        Error exit: UART Receive Data Register overrun.
  282.     ERRORLEVEL  30        Error exit: Error on the command line.
  283.     ERRORLEVEL  40        Error exit: Memory allocation: out of "HEAP" 
  284.                 memory.
  285.     ERRORLEVEL  90        Error exit: Unsupported COM port. 
  286.                 COM1: through COM4: only.
  287.     ERRORLEVEL 100        Error exit: Unable to read the BBS file.
  288.     ERRORLEVEL 110        Error exit: Unable to read SELL'EM.DBM, 
  289.                 the database menu file.
  290.     ERRORLEVEL 120        Error exit: Unable to open or write to the 
  291.                 temporary files used in the -COMPRESS feature.
  292.  
  293.     The best way to check for ERRORLEVELs is through a batch file.  Add
  294.     a line like the one below in the batch file that calls SELL'EM:
  295.  
  296. IF ERRORLEVEL 100 IF NOT ERRORLEVEL 101 ECHO *** SELL'EM cannot find the BBS file! >> C:\BBS\DATA\BBS.LOG
  297.  
  298.     Review your DOS manual for more information on ERRORLEVELs.
  299.  
  300. REGISTRATION
  301. ------------
  302.     SELL'EM.EXE is not public domain, but Shareware.  You are granted a
  303.     limited license to operate this program for a test period of 30 days.
  304.     Completing this test period, if you decide to continue its use, you
  305.     must register with the programmer.  The registration fee is $15.00.
  306.     Make a check or money order payable to:
  307.  
  308.     Sagerquist Micro Engineering
  309.     1414 W. Kerrick St.
  310.     Lancaster, Ca. 93534
  311.     BBS: (805) 723-6908
  312.  
  313.     Payment is a one time investment which allows you all further revisions
  314.     at no extra expense.
  315.  
  316.     Registration of SELL'EM will increase its usefulness for you and your
  317.     BBS callers.  The database menu will expand from four to a maximum of
  318.     twenty!  The available records will expand from five to a maximum of
  319.     fifty!  The credit banner stating "Unregistered" you see on exit will
  320.     go away.
  321.  
  322.     Please distribute this program, i.e. place it in your communications
  323.     program download area for others to evaluate and use.  Your comments
  324.     on this program are gladly accepted (requested, actually) at the data
  325.     number above.  Please use the BBS as our communication vehicle.  I will gladly
  326.     respond to all comments through the BBS.
  327.  
  328. DISCLAIMER
  329. ----------
  330.     This program is distributed as is.  No warranty, either expressed or
  331.     implied is offered and the programmer is not responsible for any
  332.     damages or expenses that may occur through the use of this program.
  333.     The user shall determine its suitability.  Extensive testing has been
  334.     performed and every effort has been made to ensure satisfactory 
  335.     performance prior to release.  Please communicate any difficulties 
  336.     with the programmer through the BBS at (805) 723-6908.
  337.  
  338. CREDITS
  339. -------
  340.     Many thanks to Mr. Jeff Silks of California City, Ca. who tested
  341.     every function of SELL'EM.EXE more thoroughly than I thought possible.
  342.     The direction and suggestions he gave were above and beyond anything
  343.     I could have asked for, and SELL'EM.EXE is a better program to show
  344.     for it.  Thanks, Jeff!  I owe you one!
  345.  
  346.     Many thanks to Mr. Bill Duffy of Indio, Ca., who brought a compat-
  347.     ability problem to my attention.  Mustang Software's WILDCAT! BBS
  348.     version 3.0 now uses DOOR.SYS rather than CALLINFO.BBS, but in a
  349.     different format.  Thanks to his persistence, SELL'EM now works well
  350.     with WILDCAT! v3.0 and earlier versions.  Thanks, Bill!
  351.  
  352. HISTORY
  353. -------
  354.     07/08/92 - Version 1.2 - Comm port routines overhauled.  Now supports
  355.                  the 16550 UART's 16 character FIFO buffer as
  356.                  well as earlier UARTs.
  357.  
  358.                  Input and output are now both buffered and
  359.                  interrupt driven.
  360.  
  361.                  More thorough error checking now takes place.
  362.  
  363.                  Unregistered, the evaluating sysop's available
  364.                  databases is increased from 2 to 4.  After
  365.                  registration, up to 20 databases may be
  366.                  defined.
  367.  
  368.                  In the search function, the record number is
  369.                  included in the search.  If the search string
  370.                  is "14", all records are searched for the 
  371.                  two characters together "14".  It still may
  372.                  not go directly to record 14.
  373.  
  374.                  Revised for compatability with RBBS v17 and
  375.                  its DORINFO1.DEF format.
  376.  
  377.     06/15/92 - Version 1.1 - Revised for compatability with WILDCAT! v3.0
  378.                  and its DOOR.SYS format.
  379.  
  380.     03/28/92 - Version 1.0 - First release, awaiting comments and 
  381.                  suggestions.
  382.